<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>New Company</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<LINK rel="stylesheet" type="text/css" href="/CSS/Outlook.css">
<SCRIPT src="/include/common.js"></SCRIPT>
<SCRIPT src="/include/SOAP.js"></SCRIPT>
<?XML:NAMESPACE PREFIX="COOL"/>
<STYLE>
  @media all{
	    cool\:button{behavior: url(/include/HTC/coolbutton_js.htc);text-align: center}
    }
	.coolbutton{VERTICAL-ALIGN: middle;
							cursor:hand;
							cb--selected-background:menu;
							font-family:tahoma;font-size:8pt;font-weight:bold}
.cb{BEHAVIOR: url(/Include/HTC/coolbutton_js.htc);
		VERTICAL-ALIGN: middle;
		cursor:hand;
		cb--selected-background:menu;
		font:menu;
		padding:3px;padding-left:5px;padding-right:5px
}
</STYLE>
</head>
<body onload="page_Load()" oncontextmenu="return(event.ctrlKey)" id="ws">
<FIELDSET>
<TABLE cellpadding="0" cellspacing="0" width="100%"><TR>
	<TD width="75%" nowrap style=>
		<DIV id="divMenu" STYLE="FILTER: progid:DXImageTransform.Microsoft.Fade(duration=1.5); VISIBILITY: hidden; WIDTH: 100%;pading-bottom:1px">
			<SPAN class="cb" onclick="location='/manager/menu'"><B>Login</B></SPAN>
			<SPAN class="cb" onclick="location='/manager/menu'"><B>Demo</B></SPAN>
			<SPAN class="cb" onclick="location='/manager/menu'"><B>Help</B></SPAN>
		</DIV>
	<TD width="25%" nowrap style="FONT-WEIGHT: bold; TEXT-TRANSFORM: capitalize; COLOR: darkred; FONT-FAMILY: Verdana; FONT-VARIANT: small-caps" align="right">
		<MARQUEE behavior= "slide" loop="1" direction="right" style="width:100%;PADDING-RIGHT: 20px; PADDING-LEFT: 20px" >turbo credit</MARQUEE>
</TABLE>
</FIELDSET>
<TABLE>
	<CAPTION><B>Register New Company</B></CAPTION>
	<TR><TD>Company Type:</TD><TD><SELECT id="selCompanyType"><OPTION value="MB">Mortgage Broker</OPTION></SELECT></TD></TR>
	<TR><TD>Company Name:</TD><TD><INPUT id="txtCompanyName" type="text"></TD></TR>
	<TR><TD>Admin User:</TD><TD><INPUT id="txtAdminUser" type="text"></TD></TR>
	<TR><TD>Admin Password:</TD><TD><INPUT id="txtPassword" type="password"></TD></TR>
	<TR><TD>Admin Password:</TD><TD><INPUT id="txtPassword" type="password"></TD></TR>
	<TR align="center"><TD colspan="10"><INPUT type="button" value="Create Company" onclick="createCompany()" ID="Button1" NAME="Button1"></TD></TR>
</TABLE>
</body>
</html>
<SCRIPT language="javascript">
function page_Load(){
	if( divMenu.filters[0] ){
		divMenu.filters[0].Apply();
		divMenu.style.visibility="visible";
		divMenu.filters[0].Play();
	}
	initWS("NEW_COMPANY","NewCompany.asmx");
	document.attachEvent("onkeydown",doEnterKey);
}
function createCompany(){
	if( txtPassword[0].value != txtPassword[1].value )return alert("Passwords are not identical.");
	if( txtPassword[0].value == "" )return alert("Empty password is not recomended.");
	var ret = WS(CO("CreateCompany"),selCompanyType.value||"",txtCompanyName.value,txtAdminUser.value,txtPassword[0].value);
	if( showSOAPError(ret) )return false;
	location.replace("/manager/menu/");
}
</SCRIPT>
